These files include data and estimation code for:

Megan Shannon, Daniel S. Morey, and Frederick J. Boehmke. 2010. 
"The Influence of International Organizations on Militarized Dispute 
Initiation and Duration." International Studies Quarterly 54: 1123-1141.

Compiled on May 24, 2011 by Daniel S. Morey (daniel-morey@uky.edu) and
	Frederick J. Boehmke (frederick-boehmke@uiowa.edu).

Updated on July 12, 2011 by Frederick J. Boehmke (frederick-boehmke@uiowa.edu).

INCLUDED:  

2 Stata data sets: 
 
  smb2010isq-preimpute.dta 	The original, pre-imputation data set.    
  smb2010isq.dta 		The final, post-imputation data set for analysis.    

3 Stata do files:  
 
  smb2010isq-impute.do 		 Cleans the data and calls Amelia II for imputation.  
  smb2010isq-analyze.do 	 Runs the models reported in the paper.  
  smb2010isq-simulate.do 	 Interprets the model and generates Figure 1.  

1 README file: 
  
  smb2010isq-README.txt		Describes the included data and files.  


NOTES:

1. One data set included here, smb2010isq.dta, contains all five of our imputed 
	data sets. We imputed data for the entry model only since variables are, by 
	definition, missing for MIDs that do not occur. Imputations are stacked on top 
	of each other and indicated by the variable imputeid. The data here includes 
	only the final variables - others were used in imputation and are
	available in smb2010isq-preimpute.dta for those interested.

2. The other data set, smb2010isq-preimpute.dta, contains the pre-imputation data. 

3. The imputation is performed by smb2010isq-impute.do and generates a file
	smb2010isq-impute.dta (to avoid deleting smb2010isq.dta). It also
	includes some of the coding decisions that we made prior to imputation.
	You only need these data if you want to run your own imputation.
	
4. If you do run your own imputation, make sure you save the data as 
	change the name of the file opened in smb2010isq-analyze.do.
	The batch file smb2010isq-impute.do is written to call Amelia II for
	Windows directly, but you may have to adjust the -cd- command to
	match the proper directory on your system. Alternatively, when the
	Stata file pauses to let Amelia II run, you can just start it up on
	your own. When imputation is done, enter -q- at the Stata prompt and
	hit return to continue processing the imputed file. Details on our
	imputation settings are given in smb2010isq-impute.do. Once this
	file is done, you can delete the intermediate data sets (e.g., 
	toimpute.dta, smb2010isq-base.dta, outdata1.dta-outdata5.dta). Finally,
	note that running this file requires btscs.ado from Beck, Katz, and
	Tucker.
	
5. The models are estimated by smb2010isq-analyze.do, this file contains only 
	those models reported in the paper. We exclude a large number of models 
	run for robustness because of the length of time involved in running the file.

6. Figure 1 is generated by smb2010isq-simulate.do.

7. The programs are written for Stata version 9 or above, though they may run in 
	previous versions.

8. Erratum 1: we rescaled the distance variable by dividing by 10, but forgot to 
	adjust the results for the first two models reported in the paper. Thus, 
	the coefficient estimates and standard errors reported here for those models 
	will be off by a factor of 10.
	
9. Erratum 2: The constant and associated SE for the selection equation reported in 
	Table 2, Model 2 for commitment enhancing IOs is incorrect (it's identical 
	to the coefficient and SE for the IO variable, which is correct). It should 
	be about -.564 with a standard error of .052. We apologize for the error.

VARIABLES:

Here are descriptions for all the variables used in the primary analysis. See the 
paper for additional details. Additional intermediate variables are created and are 
generally saved but not used later.


Variable	Description							Source/Calculation
imputeid	Indicates the five imputed data sets, which we stacked.		Imputed using Amelia II (See paper for details).
sample		Observations with complete data before imputation.		Model run with COWIO before imputations performed.
COWIO		Total number of joint IO memberships in dyad			Correlates of War 2 International Governmental Organizations Data (V. 2.0)  
cumdurat	Total duration of MID (in days) 				Dyadic MID Dataset (V. 2.0) 
cumdurat_fat	Total duration of a fatal MID (in days)				Dyadic MID Dataset (V. 2.0)
distance	Total distance between states in dyad				EUGene
dyadid		Numerical identification number for each dyad			Min(state # a, state # b) * 1000 plus max(state # a, state # b)
dur_peace	Duration since last dyadic MID					Calculated using BTSCS
enter		Indicator for a new MID in dyad-year				Created using Dyadic MID Dataset (V. 2.0)
enter_fat	Indicator for a new fatal MID in dyad-year			Created using Dyadic MID Dataset (V. 2.0)
fail		Indicator if MID termination is observed (non-censored)
hihost		Highest level of conflict reached in MID			Dyadic MID Dataset (version 2.0)
imputeid	The imputed data set for an observation (1-5)
IntrvIOs	Count of joint membership in Commitment Enhancing IOs		See Appendix in paper for list of IO included
jdemo2		Joint Democracy using Polity 2 score				Polity IV, via EUGene
majdyad		Major Power Dyad						State System Membership List, v2008.1, Majors 2008.1, via EUGene
midnum		Numerical identification number for each MID			Dyadic MID Dataset (V. 2.0)
pratio   	Power Ratio of State A to State B				Militarized Interstate Dispute Data (Version 3.0)
sample		Indicator if observation in original data (no imputed data)	
sIGOist3	Count of joint membership in Information Providing IOs		See Appendix in paper for list of IO included
_spline1	Cubic spline for temporal dependence				Calculated using BTSCS
_spline2	Cubic spline for temporal dependence				Calculated using BTSCS
_spline3	Cubic spline for temporal dependence				Calculated using BTSCS
strtyr		Year the MID started						Dyadic MID Dataset (V. 2.0)
totact		Total number of states involved in MID				Dyadic MID Dataset (V. 2.0)
year		Year of observation 


 